/**
 * 
 */
$(document).ready(function(){
	
	$(".datepicker").datepicker({
		showOn: 'both',
		buttonImage: 'img/calendar.png',
		buttonImageOnly: true,
		changeYear: true,
		numberOfMonths: 2
	});
	
	$(".datepicker").val('2012-02-18');
})

function cargarCanchas(div){
	var id = $('#cboLocal').val();
	Loading();
	$.ajax({
		  type: 'GET',
		  url: 'lstCanchasPorLocal?idLocal=' + id,
		  success: function(data) {
		    $(div).html(data);
		    $.unblockUI();
		  }
	});
}
